class AddTaskDurationEstimation < ActiveRecord::Migration
  
  def self.up
    add_column :tasks, :orig_est,   :float, :null=>true
    add_column :tasks, :cur_est,    :float, :null=>true
    add_column :tasks, :elapsed,  :float, :null=>true
    add_column :tasks, :clock_start, :datetime, :null=>true
    add_column :tasks, :remains, :float, :null=>true
    add_column :tasks, :subremains, :float, :null=>true # total of subtasks remaining
  end

  def self.down
    remove_column :tasks, :orig_est
    remove_column :tasks, :cur_est
    remove_column :tasks, :elapsed
    remove_column :tasks, :clock_start
    remove_column :tasks, :remains
    remove_column :tasks, :subremains
  end
 
end

